gtk-demo: Fix cleanup of search entry demo
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Aug 2020 01:53:59 +0000 (21:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 Aug 2020 01:53:59 +0000 (21:53 -0400)
commitdf85ef1754f89f9e3c3be35274ae180a16d9aaab
treebc13d18528105d336c7c2737aa03acb1eee2591b
parenta7e25f2c73040bc9506816eb3dc42417b1fa1cda
gtk-demo: Fix cleanup of search entry demo

We can't use the ::destroy signal anymore; use
a weak ref instead, and make ensure the entry
stays around long enough for us to finish the
cleanup.

Fixes: #3004
demos/gtk-demo/search_entry.c